// Declare variables
var a;
var p;

// Create my album collection
var albums = new Array();


// ********* Album 1 ***********//

// Create instance of album 1 and name it
a = new Album("My Album");

// Create and add photos to the album
p = new Photo("Pic of world", "images/thumbs/world.jpg", "images/photos/world.jpg");
a.addPhoto(p);

p = new Photo("Pic of world 2", "images/thumbs/world.jpg", "images/photos/world.jpg");
a.addPhoto(p);

// Add my album to the albums collection
albums.push(a);

// ********* Album 2 ***********//

// Create instance of album 1 and name it
a = new Album("My Album 2");

// Create and add photos to the album
p = new Photo("Pic of world", "images/thumbs/world.jpg", "images/photos/world.jpg");
a.addPhoto(p);

p = new Photo("Pic of world 2", "images/thumbs/world.jpg", "images/photos/world.jpg");
a.addPhoto(p);

// Add my album to the albums collection
albums.push(a);
